<template>
  <div>
    <template v-if="$app.judgeData(orderInfo) && $app.judgeData(orLiInfo)">
      <!-- 大于4 已网报 -->
      <template v-if="orderInfo.state>=4">
        <Card class="marginB10">
          <Row>
            <Col :span="6">
              <div class="lineH34 c333 f_16 f_bold marginB10">申请表</div>
              <div class="paddingL30 f_18">
                <div class="inlineBlock cBlue" style="margin-right:80px;">
                  <div
                    class="txtOneLine textLine"
                    @click="$app.openWindow(orderInfo.apply_table_path.file_url)"
                  >
                    <i
                      class="iconfont marginR5 f_24"
                      :class="$app.judgeData(orderInfo.apply_table_path) && $app.fileIcon(orderInfo.apply_table_path)"
                    ></i>
                    {{$app.judgeData(orderInfo.apply_table_path) && $app.urlToName(orderInfo.apply_table_path)}}
                  </div>
                </div>
              </div>
            </Col>
            <Col :span="6">
              <template v-if="orderInfo.state==10">
                <div class="lineH34 c333 f_16 f_bold marginB10">版权证书</div>
                <div class="paddingL30 f_18">
                  <div class="inlineBlock cBlue" style="margin-right:80px;">
                    <div
                      class="txtOneLine textLine"
                      @click="$app.openWindow(orderInfo.official_cert_path.file_url)"
                    >
                      <i
                        class="iconfont marginR5 f_24"
                        :class="$app.judgeData(orderInfo.official_cert_path) && $app.fileIcon(orderInfo.official_cert_path)"
                      ></i>
                      {{$app.judgeData(orderInfo.official_cert_path) && $app.urlToName(orderInfo.official_cert_path)}}
                    </div>
                  </div>
                </div>
              </template>
            </Col>
          </Row>
        </Card>
      </template>
      <Card class="marginB10">
        <div class="lineH34 c333 f_16 f_bold marginB10">基础信息</div>
        <div class="TJ_big paddingL30">
          <Row :gutter="15" class="TJ_box paddingB20">
            <Col :span="6" class="marginB10">
              <div>著作权人类型：{{zrR(orderInfo.people_info)}}</div>
            </Col>
            <Col :span="6" class="marginB10">
              <div>著作权人国籍：{{$app.judgeData(orderInfo.people_info) && (orderInfo.people_info.people_country_name)}}</div>
            </Col>
            <Col :span="6" class="marginB10">
              <div>著作权人省市：{{$app.judgeData(orderInfo.people_info)&&(orderInfo.people_info.people_province+orderInfo.people_info.people_city)}}</div>
            </Col>
            <Col :span="6" class="marginB10">
              <div>自然人/机构名称：{{$app.judgeData(orderInfo.people_info) && orderInfo.people_info.people_name}}</div>
            </Col>
            <Col :span="6" class="marginB10">
              <div>证件类型：{{zrX(orderInfo.people_info)}}</div>
            </Col>
            <Col :span="6" class="marginB10">
              <div>证件号码：{{$app.judgeData(orderInfo.people_info) && orderInfo.people_info.cert_number}}</div>
            </Col>
          </Row>
        </div>

        <div class="lineH34 c333 f_16 f_bold marginB10">联系方式</div>
        <div class="TJ_big paddingL30">
          <Row :gutter="15" class="TJ_box">
            <Col :span="6" class="marginB10">
              <div>姓名或单位名称：{{$app.judgeData(orderInfo.people_info) && orderInfo.people_info.reg_people_name}}</div>
            </Col>
            <Col :span="6" class="marginB10">
              <div>联系人：{{$app.judgeData(orderInfo.people_info) && orderInfo.people_info.reg_people_contact}}</div>
            </Col>
            <Col :span="6" class="marginB10">
              <div>手机号码：{{$app.judgeData(orderInfo.people_info) && orderInfo.people_info.reg_people_phone}}</div>
            </Col>
            <Col :span="6" class="marginB10">
              <div>电 话：{{$app.judgeData(orderInfo.people_info) && orderInfo.people_info.reg_people_tel}}</div>
            </Col>
            <Col :span="6" class="marginB10">
              <div>E-mail：{{$app.judgeData(orderInfo.people_info) && orderInfo.people_info.reg_people_email}}</div>
            </Col>
            <Col :span="18" class="marginB10">
              <div>收件地址：{{$app.judgeData(orderInfo.people_info) && orderInfo.people_info.reg_people_address}}</div>
            </Col>
          </Row>
        </div>
      </Card>
    </template>
  </div>
</template>



<script>
export default {
  name: "middle",
  components: {},
  props: ["orderInfo","orLiInfo"],
  data() {
    let data = {};
    let tool = {};
    return Object.assign(data, tool);
  },
  mounted() {
  },
  methods: {
    zrR(obj) {
      let out = "";
      if ($app.judgeData(obj)) {
        let { people_type } = obj;
        switch (parseInt(people_type)) {
          case 1:
            out = "自然人";
            break;
          case 21:
            out = "企业法人";
            break;
          case 22:
            out = "机关法人";
            break;
          case 23:
            out = "事业单位法人";
            break;
          case 24:
            out = "社会团体法人";
            break;
          case 3:
            out = "其他组织";
            break;
          case 4:
            out = "其他";
            break;
        }
      }
      return out;
    },
    zrX(obj) {
      let out = "";
      if ($app.judgeData(obj)) {
        let { cert_type } = obj;
        switch (parseInt(cert_type)) {
          case 1:
            out = "居民身份证";
            break;
          case 2:
            out = "军官证";
            break;
          case 4:
            out = "护照";
            break;
          case 5:
            out = "企业法人营业执照";
            break;
          case 6:
            out = "组织机构代码证书";
            break;
          case 7:
            out = "事业单位法人证书";
            break;
          case 8:
            out = "社团法人证书";
            break;
          case 9:
            out = "其他有效证件";
            break;
        }
      }
      return out;
    }
  }
};
</script>

